package gorm.springboot.demo.services

import gorm.springboot.demo.model.Blog
import org.springframework.stereotype.Service

@Service
class BlogServiceImp implements BlogService {

    @Override
    List<Blog> findAll() {

        return Blog.findAll()
    }

    @Override
    Blog findById(long id) {
        return Blog.findById(id)
    }

    @Override
    void save(Blog blog) {
        blog.save()
    }
}
